package com.neu.fenli2023623.service.impl;

import com.neu.fenli2023623.dto.IntroduceDto;
import com.neu.fenli2023623.entity.Introduce;
import com.neu.fenli2023623.mapper.IntroduceMapper;
import com.neu.fenli2023623.service.IntroduceService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class IntroduceServiceImpl implements IntroduceService {

    @Autowired
    private IntroduceMapper introduceMapper;
    @Override
    public List<Introduce> quaryall() {
        return introduceMapper.selectall();
    }

    @Override
    public Introduce selectById(Long id) {
        return introduceMapper.selectByPrimaryKey(id);
    }

    @Override
    public int updateIntroduce(IntroduceDto record) {
        return introduceMapper.updateIntroduce(record);
    }
}
